const path = require('path')
// console.log(path);

console.log(__filename);
console.log(__dirname);

let ret = path.parse(__filename)
console.log(ret);

console.log(path.dirname(__filename));
console.log(path.basename(__filename));
console.log(path.extname(__filename));
console.log(path.normalize(__filename));
console.log('===================');
console.log(__dirname);
console.log(path.resolve(__dirname,'/abc','/123'));
console.log(path.resolve(__dirname,'/addddd','add'));
console.log(path.resolve(__dirname,'abc','/123'));
console.log(path.resolve(__dirname,'/abc','ddkjdfk','adjkajdk','/akdjkdjfkdjkdjdfjd'));
console.log(path.resolve(__dirname,'./abc'));